﻿<%@ Page Title="Users" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeBehind="Users.aspx.cs" Inherits="WebPages.Admin.Users" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <h2>
        Users
    </h2>
    <div class="info">
        <fieldset class="info">
            <legend>General  info</legend>
            <p>
                <asp:Label ID="NumberOfUsersLabel" runat="server" AssociatedControlID="NumberOfUsers">Total number of users:</asp:Label>
                <asp:Literal ID="NumberOfUsers" runat="server"></asp:Literal>
            </p>
            <p>
                <asp:Label ID="NumberOfUsersOnlineLabel" runat="server" AssociatedControlID="NumberOfUsersOnline">Number of users currently online:</asp:Label>
                <asp:Literal ID="NumberOfUsersOnline" runat="server"></asp:Literal>
            </p>
        </fieldset>
        <fieldset class="info">
            <legend>User list</legend>

            <asp:DataGrid id="UserGrid" runat="server" CellPadding="2" CellSpacing="1" Gridlines="Both" >
            <HeaderStyle BackColor="darkblue" ForeColor="white" />
            </asp:DataGrid>

            <asp:Panel id="NavigationPanel" Visible="false" runat="server">
                <table border="0" cellpadding="3" cellspacing="3">
                    <tr>
                        <td>Page <asp:Label id="CurrentPageLabel" runat="server" /> of <asp:Label id="TotalPagesLabel" runat="server" /></td>
                        <td><asp:LinkButton id="PreviousButton" Text="< Previous page" OnClick="PreviousButton_OnClick" runat="server" /></td>
                        <td><asp:LinkButton id="NextButton" Text="Next page >" OnClick="NextButton_OnClick" runat="server" /></td>
                    </tr>
                </table>            
            </asp:Panel>
        </fieldset>
    </div>
</asp:Content>
